<?php include APPLICATION_PATH . '/modules/default/layouts/scripts/content-outer-start.phtml'; ?>
<div class="box-form" style="width: 27%; height:500px; float: left; margin-right: 20px;">
    <div class="fd_hot_cm" style="position: relative;">
        <div class="hd_hot_rate">
            <a href="#">
                <?php
                if ($this->overall <= 2)
                    echo 'Rat Kem, ';
                else if ($this->overall > 2 && $this->overall <= 4)
                    echo 'Trung Binh, ';
                else if ($this->overall > 4 && $this->overall <= 6)
                    echo 'Kha tot, ';
                else if ($this->overall > 6 && $this->overall <= 8)
                    echo 'Rat tot, ';
                else if ($this->overall > 8)
                    echo 'Tuyet hao, ';
                echo number_format($this->overall, 1, '.', '');
                ?>
            </a>
            <p>Điểm từ <b><?php echo $this->total_review ?></b> đánh giá</p>
        </div>
        <div class="hd_hot_des">
            <p id="content">“<?php echo $this->comment ?>”</p>
            <p id="user"><span><?php echo $this->displayname ?></span>, VN</p>
        </div>
    </div>
    <?php
    if ($this->profileNameSpace) {
        include APPLICATION_PATH . '/modules/default/views/scripts/rating.phtml';;
    }
    ?>
</div>

<!--  start related-activities -->
<div id="featured-content-fd">
    <div id="column1" style="width:100%; float:left;">
        <div class="fd_name"><h1><?php echo $this->test['name'] ?> - <a href='<?php echo $this->baseUrl. '/default/hospital/detail/id/' . $this->hospital['id']; ?>'><?php echo $this->hospital['name'] ?></a></h1></div>
        <div><h4><i style="font-weight: normal; font-size:13px;"><?php echo $this->test['location'] ?></i></h4></div>
    </div>
    <div class="item_fd">
        <div class="slideshow">
            <img class="change" src="<?php echo $this->test['images'] ?>">
        </div>
        <div class="item_fd_right">
            <p><?php echo $this->test['sumary'] ?></p>
        </div>    
        <div class="fd_content">    
            <p><?php echo $this->test['desc'] ?></p>
        </div>
        <div class="clear"></div>

    </div>
</div>
<!-- end related-activities -->
<div class="box-form" style="width: 15%; height:800px; float: left; margin-left: 20px;">
    <?php 
        foreach($this->doctor as $item) {
            echo '<div class="fd_doctor_img">';
            echo    '<a href="/trunk/default/doctor/detail/id/' . $item['id'] . '">';
            echo        '<img class="change" src="' . $item['images'] . '"></a>';
            echo '</div>';
            echo '<div class="fd_doctor_info">';
            echo '<p>' .$item['title'] . ' ' .$item['name']. '</p>';
            echo $item['position'];
            echo '</div>';
        }
    ?>
    <div class="clear"></div>
</div>

<div class="clear"></div>
<?php include APPLICATION_PATH . '/modules/default/layouts/scripts/content-outer-end.phtml'; ?>

